package com.tianxiabuyi.model.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * 问题
 * @author yangh
 */
@Entity
@Table(name = "quest")
public class Quest extends TXBYObject {
	private Integer uid;           // 用户id 
	@Column(name="old_id")
	@JSONField(name = "old_id")
	private Integer oldId;         // 旧系统中的id
	@Column(name="group_id")
	@JSONField(name = "group_id")
	private Integer groupId = 0;   // 分组
	private String title;          // 问题标题
	private String content;        // 问题内容
	private String imgs;           // 问题配图
	private Integer aid = -1;      // 被提问者的id, 默认所有用户都可以回答
	public Integer getUid() {
		return uid;
	}
	
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	
	public Integer getGroupId() {
		return groupId;
	}
	
	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}
	
	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getContent() {
		return content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
	
	public String getImgs() {
		return imgs;
	}
	
	public void setImgs(String imgs) {
		this.imgs = imgs;
	}

	public Integer getAid() {
		return aid;
	}

	public void setAid(Integer aid) {
		this.aid = aid;
	}
}